<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8" />
    <title>测试</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <style>
        html,
        body,
        .app-wrapper {
            position: relative;
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
        }
    </style>
</head>

<body>
    <div id="root" class="app-wrapper"></div>
    <script src="/js/jquery/jquery-3.2.1.min.js"></script>

    <script type="text/javascript">
        $(function() {
            // let dataurl = '../../admin/curd/curdpage.json';
            let dataurl = 'http://127.0.0.1:5000/api/system/description';
            console.log(dataurl);

            $.ajax({
                url: dataurl,
                type: "GET",
                xhrFields: {
                    withCredentials: false // 如果是https请求，可以试试 true
                },
                crossDomain: true,
                success: function(res) {
                    alert(res)
                }
            });
        });
    </script>
</body>

</html>